﻿$(document).ready(function(){
	$("#del_link").click(function(event){
		var checklist = "";
		$(":checkbox:checked").each(function(){
			checklist+="&file_checks[]="+$(this).val();
		});
		//提交
		if (checklist!=""){
			$.getJSON("/jswjggtzd/delete",
			checklist,
			function(data){
				if(data != false){
					$.each(data,function(i,n){
						var the_id = "#file"+n;
						$(the_id).remove();
					});
				}
			});
		}
	});
});